package com.aidex.system.service;

import com.aidex.common.core.service.BaseService;
import com.aidex.system.domain.CargoDetail;
import com.aidex.system.domain.RiskGoodsNameKeySuggest;
import com.aidex.system.domain.vo.CargoDetailApply;
import com.aidex.system.domain.vo.SuggestApply;

/**
 * 优化建议信息Service接口
 * @author jmy
 * @email jmyinjg@163.com
 * @date 2021-10-14
 */
public interface RiskGoodsNameKeySuggestService extends BaseService<RiskGoodsNameKeySuggest>
{

    /**
     * 批量删除优化建议信息
     * @param ids 需要删除的优化建议信息ID集合
     * @return 结果
     */
    public int deleteRiskGoodsNameKeySuggestByIds(String[] ids);

    /**
     * 审核货品清单优化建议
     *
     * @param apply
     */
    Boolean apply(SuggestApply apply);

    /**
     * 审核货品清单优化建议
     *
     * @param apply
     */
    Boolean confirm(SuggestApply apply);

    /**
     * 通过货品名获取清单内容
     * @param name
     * @return
     */
    RiskGoodsNameKeySuggest getByName(String name);

    /**
     * 添加建议清单
     *
     * @param key
     * @param type
     */
    void addSuggest(String key, Integer type);

}
